@font-face {
  font-family: 'Nunito';  
  src: url('/Landing Pages/Apps Landing Page/css/fonts/Nunito-Light.ttf');  
  font-weight: 300; 
  font-style: normal;
}

@font-face {
  font-family: 'Nunito';  
  src: url('/Landing Pages/Apps Landing Page/css/fonts/Nunito-Regular.ttf');  
  font-weight: 400; 
  font-style: normal;
}

@font-face {
  font-family: 'Nunito';  
  src: url('/Landing Pages/Apps Landing Page/css/fonts/Nunito-Medium.ttf');  
  font-weight: 500; 
  font-style: normal;
}

@font-face {
  font-family: 'Nunito';  
  src: url('/Landing Pages/Apps Landing Page/css/fonts/Nunito-Bold.ttf');  
  font-weight: bold; 
  font-style: normal;
}


body {
  background-image: url('/Landing Pages/Apps Landing Page/images/lines-bg.png');
  background-repeat: no-repeat; 
  background-size: cover;
  color: #fff;
  font-size: 16px;
  font-family: 'Nunito', sans-serif; 
  height: 100vh;
  margin: 0;
}

header, main, footer {
  text-align: center;
}

.center {
    text-align: center;
}

.button {
    color: #fff;
    background: #00ADEF;
    border-radius: 100px;
    font-size: 24px;
    font-weight: 500;
    padding: 20px 50px;
    text-decoration: none;
    margin: 20px; 
    display: inline-block;
}

.button:hover {
    background: #0087BB;
}

.logo {
    margin-top: 3%;
}

.title {
  font-size: 24px !important;
  margin: 0; 
}

#pageTitle h1 {
    margin: 5px 0;
}

.subheading {
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.brain-container {
  position: relative;
  width: 75vw; 
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  background: url('/Landing Pages/Apps Landing Page/images/brain-bg.png') no-repeat center;
  background-size: contain;
}

.brain-container .brain-pc {
  position: absolute;
  cursor: pointer;
  height: 9%;
  width: 9%;
  transition: transform 0.5s ease;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.brain-container .brain-pc:hover {
  transform: scale(1.3);
}

.brain-container a:hover {
  cursor: pointer;
}

.img-longterm { top: 12%; left: 34.5%; background-image: url('/Landing Pages/Apps Landing Page/images/long-term-black.png'); }
.img-longterm:hover { background-image: url('/Landing Pages/Apps Landing Page/images/long-term.png'); }

.img-adaptable { top: 14%; left: 60%; background-image: url('/Landing Pages/Apps Landing Page/images/adaptable-apps-black.png'); }
.img-adaptable:hover { background-image: url('/Landing Pages/Apps Landing Page/images/adaptable-apps.png'); }

.img-hybrid { top: 31%; left: 25%; background-image: url('/Landing Pages/Apps Landing Page/images/hybrid-black.png'); }
.img-hybrid:hover { background-image: url('/Landing Pages/Apps Landing Page/images/hybrid.png'); }

.img-redevelop { top: 33%; left: 53%; background-image: url('/Landing Pages/Apps Landing Page/images/redevelop-black.png'); }
.img-redevelop:hover { background-image: url('/Landing Pages/Apps Landing Page/images/redevelop.png'); }

.img-switch { top: 45%; left: 31%; background-image: url('/Landing Pages/Apps Landing Page/images/switch-black.png'); }
.img-switch:hover { background-image: url('/Landing Pages/Apps Landing Page/images/switch.png'); }

.modal {
  display: none;  
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  background: #000;
  border: 3px solid #00ADEF;
  border-radius: 15px;
  padding: 30px 40px;
  width: 40vw;
  max-width: 600px;
  text-align: left;
  animation: popIn 0.3s ease;
}

.modal h1 {
    color: #00ADEF;
}

.modal h2 {
    text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s;
}
.close:hover {
  color: #00ADEF;
}

body.modal-open {
  overflow: hidden;
}

.btn-switch {
  display: inline-block;
  transition: transform 0.4s ease;
}

.btn-switch:hover {
  transform: scale(1.1);
}

/* Tablets and small laptops */
@media (max-width: 1024px) {
  .title {
    font-size: 36px;
  }
  .subheading {
    font-size: 18px;
  }
  .modal-content {
    width: 70vw;
    padding: 20px 25px;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .logo {
    height: 60px;
  }

  .title {
    font-size: 28px;
    line-height: 1.2;
    padding: 0 10px;
  }

  .subheading {
    font-size: 16px;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .brain-container {
    width: 90vw;
    aspect-ratio: 1 / 1.2;
    background-size: contain;
  }

 .brain-container .brain-pc {
    height: 12%;
    width: 12%;
  }

  .img-longterm { top: 19%; left: 33%; }
  .img-adaptable { top: 19%; left: 58%; }
  .img-hybrid { top: 33%; left: 23%; }
  .img-redevelop { top: 34%; left: 51%; }
  .img-switch { top: 46%; left: 30%; }

  .modal-content {
    width: 85vw;
    max-width: none;
    padding: 20px;
    border-width: 2px;
  }

  .modal h1, .modal h2 {
    font-size: 20px; 
  }

  .modal ul {
    padding-left: 20px;
  }

  .button {
    font-size: 18px;
    padding: 15px 30px;
  }

  .btn-switch img {
    height: 150px;
  }

  .close {
    font-size: 24px;
    top: 10px;
    right: 15px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .title {
    font-size: 15px !important;
  }

  .subheading {
    font-size: 14px;
  }

  .brain-container {
    width: 95vw;
    aspect-ratio: 1 / 1.3;
  }

  .modal-content {
    width: 90vw;
    padding: 15px;
  }

  .button {
    font-size: 16px;
    padding: 12px 25px;
  }

  .btn-switch img {
    height: 120px;
  }
}

